package com.dream.sys.mapper;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.dream.sys.model.User;
import com.dream.sys.model.DTO.userDto.UserDto;

public interface UserMapper  extends BaseMapper<User> {
	
	/**
	 * 根据id查找用户信息
	 * @param id
	 * @return
	 */
	UserDto selectUserDtoById(@Param("id") Long id);

	/**
	 * 分页 
	 * @param page
	 * @param params
	 * @return
	 */
	List<Map<String, Object>> selectUserPage(Pagination page,Map<String, Object> params);
}
